package com.dragon.mmochat.model;

import com.dragon.mmochat.model.enumType.MmochatEventType;

public class MmochatEventLog implements Comparable<MmochatEventLog>{
	private int id;
	private MmochatEventType type;
	private long time;
	private String title = null;
	private String content = null;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public MmochatEventType getType() {
		return type;
	}

	public void setType(MmochatEventType type) {
		this.type = type;
	}

	public long getTime() {
		return time;
	}

	public void setTime(long time) {
		this.time = time;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Override
	public int compareTo(MmochatEventLog o) {
		return (int) ((o.getTime() - time)/60000);
	}

}
